package com.egao.common.module.world.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 济世杯文章
 * @author lsj
 */
@ApiModel(description = "济世杯文章")
@TableName("world_game_article")
@Data
public class WorldGameArticle implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("点击量")
    private Integer hits;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("封面图")
    private String imgUrl;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建人")
    private Integer createBy;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("创建人姓名")
    @TableField(exist = false)
    private String createByName;

}
